package com.zb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zb.entity.ZjAdmStoreAuthor;
import com.zb.entity.dto.StoreAuthorDto;
import com.zb.entity.dto.StoreAuthorSelect;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 后台仓库权限表 服务类
 * </p>
 *
 * @author WEN
 * @since 2023-07-14
 */
public interface ZjAdmStoreAuthorService extends IService<ZjAdmStoreAuthor> {

    /**
     * 新增或修改权限类型
     * @param authorDto
     */
    void save(StoreAuthorDto authorDto);

    /**
     * 仓库权限列表查询
     * @param authorSelect
     * @return
     */
    Map<String, Object> getList(StoreAuthorSelect authorSelect);

    /**
     * 批量禁用或启用仓库权限
     * @param idList 仓库权限ID集合
     * @param disable 是否禁用：false-否，true-是
     */
    void updateBatchDisableById(List<Long> idList, boolean disable);
}
